package com.simoniu.mp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import java.io.Serializable;


@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("students_teachers")

public class StudentsTeachers  implements Serializable,Cloneable {
    //sid+tid构成了联合主键
    @Id
    protected int sid;
    @Id
    private String tid;
}
